package sample.innerCls;

abstract class Contents {
	abstract public int value();
}

interface Dest {
	String ReadLabel();
}

class Parcel {
	private class PContents extends Contents {
		private int i = 11;

		@Override
		public int value() {
			return this.i;
		}

	}

	protected class PDest implements Dest {
		private String label;

		private PDest(String whereTo) {
			this.label = whereTo;
		}

		@Override
		public String ReadLabel() {
			return this.label;
		}

	}

	public Dest dest(String s) {
		return new PDest(s);
	}

	public Contents cont() {
		return new PContents();
	}

}

public class Test {
	public static void main(String[] args) {
		Parcel p = new Parcel();
		Contents c = p.cont();
		Dest d = p.dest("Anqing");
	}
}
